<!-- 横幅跳转页面 -->
<template>
	<view>
		<view class="content">
			<rich-text class="main ql-editor" :nodes="info"></rich-text>
		</view>
	</view>
</template>

<script>
	import {
		getBannerDetail
	} from '@/apis/apis.js'
	export default {
		data() {
			return {
				id: "",
				info: {}
			}
		},
		onLoad(options) {
			this.id = options.id
			if(options.id){
				getBannerDetail(this.id).then(res => {
					let content  = this.$formatContent(res.data.content)
					this.info = content
				})
			}else{
				if(options.content){
					this.info = this.$formatContent(options.content)
					console.log(this.info,'测试')
				}
			}
			
		},
		methods: {},
	}
</script>

<style scoped lang="scss">
	.content {
		padding: 0 30rpx;
		font-size: 26rpx;
		margin: 0 auto;
		// background-color: yellowgreen;
	}
</style>
